﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:res="clr-namespace:WindowsPhoneToolbox"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             x:Name="ConnectDevice" Focusable="True"
             x:Class="WindowsPhoneToolbox.Controls.ConnectDeviceControl" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" >
    <StackPanel >
        <TextBlock TextWrapping="Wrap" Padding="0" Text="{Binding Source={x:Static res:Resources.XSelectDevice}}" Margin="0,5" FontSize="12" />
    	<ComboBox MaxDropDownHeight="100" Margin="0,0,0,10" x:Name="CboDevices" FontSize="12"/>
    	<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
            <Button Content="{Binding Source={x:Static res:Resources.XConnectBnt}}" Margin="0,0,10,0" IsEnabled="True" IsDefault="True" Name="Bntconnect" Click="BntconnectClick" Padding="3" FontSize="12" />
            <Button Content="{Binding Source={x:Static res:Resources.XDisconnectBnt}}" IsEnabled="True" Name="BntDisconnect" Click="BntDisconnectClick" Padding="3" FontSize="12" />
    	</StackPanel>
    	<TextBlock x:Name="MsgErro" TextWrapping="Wrap" Margin="0,0,0,10" Foreground="Red" Text="Errro Message" FontWeight="Normal" FontSize="11" />
    	<Expander IsExpanded="False" FontSize="12" ExpandDirection="Down" IsEnabled="True" Name="DeviceInfo">
    			<Expander.Header>
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XDeviceInfo}}" FontWeight="Bold" FontSize="12" />
				</Expander.Header>
    			<Grid>
    			<Grid.RowDefinitions>
    				<RowDefinition/>
    				<RowDefinition/>
    				<RowDefinition/>
    				<RowDefinition/>
    				<RowDefinition/>
    				<RowDefinition/>
    				<RowDefinition/>
    			</Grid.RowDefinitions>
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="130"/>
    				<ColumnDefinition/>
    			</Grid.ColumnDefinitions>
    			<TextBlock Grid.Row="0" Grid.Column="0" Text="Plataform" />
    			<TextBlock Grid.Row="1" Grid.Column="0" Text="Build" />
    			<TextBlock Grid.Row="2" Grid.Column="0" Text="Version" />
    			<TextBlock Grid.Row="3" Grid.Column="0" Text="Achiteture" />
    			<TextBlock Grid.Row="4" Grid.Column="0" Text="Avaliable Memory"/>
    			<TextBlock Grid.Row="5" Grid.Column="0" Text="Total Memory"/>
    			<TextBlock Grid.Row="0" Grid.Column="1" x:Name="DevInfoPlataform" />
    			<TextBlock Grid.Row="1" Grid.Column="1" x:Name="DevInfoBuild" />
    			<TextBlock Grid.Row="2" Grid.Column="1" x:Name="DevInfoVersion" />
    			<TextBlock Grid.Row="3" Grid.Column="1" x:Name="DevInfoAchiteture" />
    			<TextBlock Grid.Row="4" Grid.Column="1" x:Name="DevInfoAvalMemory"/>
    			<TextBlock Grid.Row="5" Grid.Column="1" x:Name="DevInfoTotMemory"/>
    		</Grid>
    	</Expander>
    </StackPanel>
</UserControl>
